﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>登 录</title>
    <style type="text/css">
        .loginText
        {
        	 padding:12px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div style="margin-top:120px;">
        <table style="width:100%;">
            <tr align="center">
                <td>
                    <div style="background-color: #E3EAEB; width: 260px; padding:18px; border:solid 1px gray;">
                        <div class="loginText" style="text-align: left; padding-left:0px; padding-bottom:2px;">
                            &nbsp;请登录仓库管理系统</div>
                        <div>
                            <hr style="width:98%;" />
                        </div>
                        <div style="color:Red; font-size:0.8em;" id="errorMessage" visible="false"  runat="server">用户名或密码不正确，请再次尝试。</div>
                        <div class="loginText">
                            <asp:Label ID="Label1" runat="server" Text="用户名："></asp:Label>
                            <br />
                            &nbsp;
                            <asp:TextBox ID="txtName" runat="server" Width="140px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                ControlToValidate="txtName" ErrorMessage="*" SetFocusOnError="True"></asp:RequiredFieldValidator>
                        </div>
                        <div class="loginText">
                            <asp:Label ID="Label2" runat="server" Text="密码："></asp:Label>
                            <br />
                            &nbsp;
                            <asp:TextBox ID="txtPassword" runat="server" Width="140px" TextMode="Password"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                                ControlToValidate="txtPassword" ErrorMessage="*" SetFocusOnError="True"></asp:RequiredFieldValidator>
                        </div>
                        <div class="loginText">
                            <asp:CheckBox ID="chkRememberStatus" runat="server" Text="记住登陆状态" />
                        </div>
                        <div class="loginText">
                            <asp:Button ID="btnLogin" runat="server" Text="登 录" Height="28px" 
                                Width="65px" onclick="btnLogin_Click" />
                        </div>
                    </div>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
